use GENERALMODEL
GO

ALTER TABLE Panels 
		ADD CONSTRAINT fk_positionID_Panels_Positions 
		FOREIGN KEY(positionID) 
		REFERENCES Positions(positionID);

ALTER TABLE Products
		ADD CONSTRAINT fk_productTypeID_Products_ProductTypes
		FOREIGN KEY(productTypeID) 
		REFERENCES ProductTypes(typeID);

ALTER TABLE Products
		ADD CONSTRAINT fk_manufacturerID_Products_Manufacturers
		FOREIGN KEY(manufacturerID) 
		REFERENCES Manufacturers(manufacturerID);

ALTER TABLE Products
		ADD CONSTRAINT fk_panelID_Products_Panels
		FOREIGN KEY(panelID) 
		REFERENCES Panels(panelID);

ALTER TABLE News
		ADD CONSTRAINT fk_typeID_News_NewsTypes
		FOREIGN KEY(typeID) 
		REFERENCES NewsTypes(typeID);

ALTER TABLE News
		ADD CONSTRAINT fk_panelID_News_Panels
		FOREIGN KEY(panelID) 
		REFERENCES Panels(panelID);

ALTER TABLE Accounts
		ADD CONSTRAINT fk_hqID_Accounts_HiddenQuestions
		FOREIGN KEY(hqID) 
		REFERENCES HiddenQuestions(hqID);

